package com.fjxd.feign.clients;


import com.fjxd.feign.pojo.People;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@FeignClient(value = "peopleService")
public interface PeopleClient {
    @GetMapping("/people/{userId}")
    List<People> getPeopleForUser(@PathVariable Integer userId);

    @GetMapping("/people/getPeople/{peopleid}")
    People getPeople(@PathVariable Integer peopleid);
}
